package au.com.twosquared.tools;

public class Random {

	private static java.util.Random rnd = new java.util.Random();

	/**
	 * Returns an integer between min and max
	 * 
	 * @param min
	 *            minimum value, inclusive
	 * @param max
	 *            maximum value exclusive
	 * @return a number between min and max
	 */
	public static int integer(int min, int max) {
		return rnd.nextInt(max - min) + min;
	}

	/**
	 * Returns an integer between 0 and max
	 * 
	 * @param max
	 *            maximum value, exclusive
	 * @return a number between 0 and max
	 */
	public static int integer(int max) {
		return rnd.nextInt(max);
	}

}
